import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'


const routes = [{
        path: '/',
        name: 'Home',
        component: () =>
            import ('../page/Home/Home.vue'),
        // children: [{
        //         path: '',
        //         component: () =>
        //             import ('../components/qrsrc/Textboxv.vue')
        //     }
        // ],
    },
    {
        path: '/prototy',
        name: 'prototy',
        component: () =>
            import ('../page/Prototy/Prototy.vue'),
        children: [{
                path: '/prototyHome',
                component: () =>
                    import ('../page/Prototy/PrototyHome.vue')
            },
            {
                path: '/Funcation',
                component: () =>
                    import ('../page/Prototy/Funcation.vue')
            },
            {
                path: '/Proto',
                component: () =>
                    import ('../page/Prototy/Proto.vue')
            },
            {
                path: '/Inherit',
                component: () =>
                    import ('../page/Prototy/Inherit.vue')
            },
            {
                path: '/Summary',
                component: () =>
                    import ('../page/Prototy/Summary.vue')
            }

        ],
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    // history: createWebHashHistory(),
    routes
})

export default router